<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">

<head th:include="system/user/include :: header"></head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12">
            <div class="ibox">
                <div class="ibox-title" style="padding-bottom: 0;">
                    <h3 class="text-center">个人资料中心</h3>
                    <div class="gg-nav">
                        <ul class="nav nav-tabs">
                            <li class="active"><a href="#basic_info" data-toggle="tab">基本资料</a></li>
                            <li><a href="#pwd_info" data-toggle="tab">修改密码</a></li>
                            <li><a href="#login_info" data-toggle="tab">登录信息</a></li>
                              <li><a href="#platform_info" data-toggle="tab">平台账户信息</a></li>
                        </ul>
                    </div>
                </div>
                <div class="tab-content">
                    <!--basic info-->
                    <div class="ibox-content tab-pane fade in active"  id="basic_info">
                        <form class="gg-form" role="form" id="basicInfoForm">
                            <input name="userId" type="hidden" th:value="${user.userId}"/>
                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>姓名:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" class="form-control" id="nickname" name="nickname" th:value="${user.nickname}"  placeholder="请输入姓名" />
                                </div>
                            </div>

                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>手机:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" class="form-control" id="phone" name="phone"  th:value="${user.phone}" placeholder="请输入手机号" />
                                </div>
                            </div>
                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>邮箱:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" class="form-control" id="email" name="email" th:value="${user.email}" placeholder="请输入邮箱" />
                                </div>
                            </div>

                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>联系地址:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" class="form-control" id="desc" name="desc" th:value="${user.desc}" placeholder="请输入居住地址" />
                                </div>
                            </div>
                        </form>
                        <div class="gg-btnGroup">
                            <button type="button" class="btn btn-sm btn-primary" id="base_save">保存</button>
                        </div>
                    </div>

                    <!--pwd_info-->
                    <div class="ibox-content tab-pane fade" id="pwd_info">
                        <form class="gg-form" role="form" id="modifyPwd">
                            <a id="logout" class="hidden" href="/logout"></a>
                            <input type="hidden" name ="userId" th:value="${user.userId}"/>
                            <input type="hidden" name ="name" th:value="${user.name}"/>
                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>旧密码:</span>
                                </div>
                                <div class="gg-formDetail gg-dashed">
                                    <input type="password" class="form-control gg-border0" id="pwdOld" name="pwdOld" placeholder="请输入旧密码" />
                                    <span class="fa fa-eye gg-faeye" title="鼠标移入显示内容"></span>
                                </div>
                            </div>
                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>新密码:</span>
                                </div>
                                <div class="gg-formDetail gg-dashed">
                                    <input type="password" class="form-control gg-border0" id="pwdNew" name="pwdNew" placeholder="请输入新密码" />
                                    <span class="fa fa-eye gg-faeye" title="鼠标移入显示内容"></span>
                                </div>
                            </div>
                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>确认密码:</span>
                                </div>
                                <div class="gg-formDetail gg-dashed">
                                    <input type="password" class="form-control gg-border0" id="confirm_password" name="confirm_password" placeholder="请确认密码" />
                                    <span class="fa fa-eye gg-faeye" title="鼠标移入显示内容"></span>
                                </div>
                            </div>
                            <div class="gg-btnGroup">
                                <button type="submit" class="btn btn-sm btn-primary" id="pwd_save">保存</button>
                            </div>
                        </form>
                    </div>

                    <!--login info-->
                    <div class="ibox-content tab-pane fade"  id="login_info">
                        <div class="gg-form">
                            <div class="gg-formGroup" th:unless="${loginInfo} == null">
                                <div class="gg-formTitle" >
                                    <span>上次登录时间:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" class="form-control" th:value="${loginInfo.createTime} == null?null:${#dates.format(loginInfo.createTime,'yyyy-MM-dd HH:mm:ss')}" readonly/>
                                </div>
                            </div>

                            <div class="gg-formGroup" th:unless="${loginInfo} == null">
                                <div class="gg-formTitle">
                                    <span>上次登录IP:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" class="form-control"  th:value="${loginInfo.loginIp}" readonly/>
                                </div>
                            </div>

                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <span>本次登录IP:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" class="form-control" th:value="${user.loginIp}" readonly/>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                     <!--platform info -->
                    <div class="ibox-content tab-pane fade"  id="platform_info">
                        <div class="gg-form">
                        
                        <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>站点账户总余额:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" class="form-control" id="sumContreBalance" readonly="readonly"  name="sumContreBalance" th:value="${account.sumContreBalance}"  />
                                </div>
                            </div>
                        
                             <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>用户账户总余额:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" class="form-control" readonly="readonly"  id="accountSumMoney" name="accountSumMoney" th:value="${account.accountSumMoney}"  />
                                </div>
                            </div>
                            
                            
                                 <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>用户提现未审核总金额:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" class="form-control" readonly="readonly"  id="sumBalance" name="sumBalance" th:value="${account.sumBalance}"  />
                                </div>
                            </div>
                          
                          
                            
                                 <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>订单总金额:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" readonly="readonly"  class="form-control" id="sumPrice" name="sumPrice" th:value="${account.sumPrice}"  />
                                </div>
                            </div>
                            
                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <em class="gg-star">*</em>
                                    <span>未结算给供应商总金额:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <input type="text" readonly="readonly"  class="form-control" id="sumCostprice" name="sumCostprice" th:value="${account.sumCostprice}"  />
                                </div>
                            </div>
                            
                        </div>
                    </div>
                    
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="system/user/include :: footer"></div>
<script type="text/javascript" src="/js/appjs/sys/user/personal.js"></script>
</body>
</html>
